#coding:utf-8
'''
Created on 2015年6月17日

@author: Administrator
'''
from pip._vendor.requests.api import head
data={'back':6,'green':1,'red':2,'blue':3,'white':6}
# print dict(data.items())

def dodict(*args):
    d=dict(args)
#     print d
    return d
tada = dodict(*data.items())


s=[3,4,5]
d,c,b=s
def f(d,c,b):
    print d,c,b
f(c,d,b)
f(*s)

import heapq

items=[10,9,8,7,6,5,4,3,2,1]
head,tail=items[:2],items[-2:]
print head
print tail

# print (heapq.nlargest(3,items))
# print (heapq.nsmallest(3,items)) 
    
    